﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using MolyMart;

namespace MolyUI
{
    public partial class TestForm : Form
    {

   
        public TestForm()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Controller c = new Controller();
            c.Start();
        }

        private void button2_Click(object sender, EventArgs e)
        {
   
        }



        public void updateTextBox(string s)
        {
            Action<string> action = new Action<string>(x=>this.textBox1.Text=x);
            this.textBox1.BeginInvoke(action, s);
        }

    }
}
